package com.lzy.files.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface UploaderService {
    /**
     *  使用fastDFS上传文件
     */
    public String UploadFdfs(MultipartFile file, String fileExtName) throws Exception;


    /**
     *  使用OSS上传文件
     */
    public String UploadOSS(MultipartFile file,
                            String userId,
                            String fileExtName) throws Exception;
}
